package com.springinpractice.ch07.service;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.List;
import com.springinpractice.ch07.model.Article;

public interface ArticleService
{
	void saveArticle(Article article);
	Article getArticle(String id);
	List<Article> getArticles();
	void deleteArticle(String id);
	void deleteArticle(Article article);
	void deleteAllArticles();
	long getArticleCount();
	void importArticle(InputStream in) throws IOException;
	void exportArticle(String id, OutputStream out) throws IOException;
}
